﻿using System.Collections.Generic;

namespace MathematicallySafe.HeadCounter.Data.Common
{
    public static class Warcraft
    {
        private static readonly Dictionary<CharacterClass, string> _colourLookup =
            new Dictionary<CharacterClass, string>
                {
                    {CharacterClass.Deathknight, "#C41F3B"},
                    {CharacterClass.Druid, "#FF7D0A"},
                    {CharacterClass.Hunter, "#ABD473"},
                    {CharacterClass.Mage, "#69CCF0"},
                    {CharacterClass.Paladin, "#F58CBA"},
                    {CharacterClass.Priest, "#FFFFFF"},
                    {CharacterClass.Rogue, "#FFF569"},
                    {CharacterClass.Shaman, "#2459FF"},
                    {CharacterClass.Warlock, "#9482CA"},
                    {CharacterClass.Warrior, "#C79C6E"},
                };

        private static readonly Dictionary<CharacterClass, string> _contrastColourLookup =
            new Dictionary<CharacterClass, string>
                {
                    {CharacterClass.Deathknight, "#C41F3B"},
                    {CharacterClass.Druid, "#FF7D0A"},
                    {CharacterClass.Hunter, "#007241"},
                    {CharacterClass.Mage, "#69CCF0"},
                    {CharacterClass.Paladin, "#F58CBA"},
                    {CharacterClass.Priest, "#000000"},
                    {CharacterClass.Rogue, "#FFCF00"},
                    {CharacterClass.Shaman, "#2459FF"},
                    {CharacterClass.Warlock, "#41046F"},
                    {CharacterClass.Warrior, "#A68700"},
                };

        public static string ClassColourString(this CharacterClass wowClass)
        {
            return _colourLookup[wowClass];
        }

        public static string ClassContrastColourString(this CharacterClass wowClass)
        {
            return _contrastColourLookup[wowClass];
        }

        //        public static Color ClassColour(CharacterClass wowClass)
        //        {
        //            return ColorTranslator.FromHtml(_colourLookup[wowClass]);
        //        }
    }
}